import request from '@/utils/request'

enum API {
    COMMENTCOUNT_URL = '/api/content/comment/getCommentCount',
    LISTCOMMENT_URL = '/api/content/comment/listComment',
    SAVECOMMENT_URL = '/api/content/comment/saveComment',

}



export const reqCommentCount = (source: Number, type: String) => request.get<any, any>(API.COMMENTCOUNT_URL + `?source=${source}&type=${type}`);

export const reqCommentList = (pagination:any) => request.post<any, any>(API.LISTCOMMENT_URL,pagination);

export const reqSaveComment = (commentContent:any) => request.post<any, any>(API.SAVECOMMENT_URL,commentContent);

